package com.baibei.module;


import android.app.Application;
import android.content.Intent;
import android.util.Log;

import com.baibei.basic.BaibeiApplicationLike;
import com.tencent.bugly.Bugly;
import com.tencent.bugly.beta.Beta;

/**
 * Created by ChenRui on 2017/8/40004 14:00.
 */
public class BasicApplicationLike extends BaibeiApplicationLike {

    public BasicApplicationLike(Application application, int tinkerFlags, boolean tinkerLoadVerifyFlag, long applicationStartElapsedTime, long applicationStartMillisTime, Intent tinkerResultIntent) {
        super(application, tinkerFlags, tinkerLoadVerifyFlag, applicationStartElapsedTime, applicationStartMillisTime, tinkerResultIntent);
    }

    @Override
    public void onInitBugly() {
        Log.e("tag", "initapplication");
        if (!BuildConfig.BUILD_TYPE.equalsIgnoreCase("debug")) {
            Log.i("rae-ebec", "初始化日志上报");
            //延迟初始化
            Beta.initDelay = 5 * 1000;
            Bugly.init(getApplication(), BuildConfig.BUGLY_APP_ID, false);
        }
    }
}
